home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / hewitt.swf / scripts / DefineButton2_1405 / BUTTONCONDACTION on(press).as
Encoding:
Text File  |  2011-06-09  |  2.8 KB  |  70 lines

  1. on(press){
  2.    if(_root.inven._currentframe == 1)
  3.    {
  4.       if(_root.micon._currentframe == 40 && _root.range == true)
  5.       {
  6.          _root.next_dis1 = 2;
  7.          _root.next_txt1 = "Hey, that\'s a great idea.  I\'ll have a girlfriend in no time...  in JAIL!  ARE YOU NUTS?";
  8.       }
  9.       else if(_root.micon._currentframe == 41 && _root.range == true)
  10.       {
  11.          _root.next_dis1 = 2;
  12.          _root.next_txt1 = "I do want to make her cry, but I don\'t really have a reason.";
  13.       }
  14.       if(_root.micon._currentframe == 1 && _root.range == true)
  15.       {
  16.          _root.next_dis1 = 2;
  17.          _root.next_txt1 = "I\'m desperate for a date, but not that desperate.";
  18.       }
  19.       if(_root.micon._currentframe == 2)
  20.       {
  21.          _root.next_dis1 = 2;
  22.          _root.next_txt1 = "That\'s Mary Beth. Looks like she some eye drops for her eye infection.";
  23.       }
  24.       if(_root.micon._currentframe == 41 && _root.range == true && _root.talk5 > 0)
  25.       {
  26.          _root.fade.gotoAndPlay(1);
  27.          stopAllSounds();
  28.          _root.take = 40;
  29.          _root.micon.gotoAndStop(1);
  30.          _root.gotoAndStop(48);
  31.       }
  32.       if(_root.micon._currentframe == 4 && _root.range == true && _root.txt_number <= 1)
  33.       {
  34.          if(_root.talk5 == 0)
  35.          {
  36.             _root.talk5 = 1;
  37.             _root.txt_number = 4;
  38.             _root.next_dis4 = 7;
  39.             _root.di4 = 170;
  40.             _root.next_txt4 = "Hey Hewitt.  How are you on this lovely day?  Found that special girl to go to the dance with yet?";
  41.             _root.next_txt3 = "No, I\'m actually on a mission now to find her.  You wouldn\'t happen to have any friends that are dateless?";
  42.             _root.di3 = 171;
  43.             _root.next_dis3 = 2;
  44.             _root.next_txt2 = "No, sorry Hewitt.  I\'d go with you, but my allergies are acting up.  Tell ya what. If you find a girl, you should buy her a cup cake!";
  45.             _root.di2 = 172;
  46.             _root.next_dis2 = 7;
  47.             _root.next_txt1 = "Gee uh... thanks for the offer anyways.";
  48.             _root.di1 = 173;
  49.             _root.next_dis1 = 2;
  50.          }
  51.          else if(_root.talk5 == 1)
  52.          {
  53.             _root.txt_number = 4;
  54.             _root.next_dis4 = 7;
  55.             _root.next_txt4 = "I hope you found a date by now.  It\'s getting closer to the dance with every second.";
  56.             _root.di4 = 174;
  57.             _root.next_txt3 = "I\'m working on it...";
  58.             _root.di3 = 175;
  59.             _root.next_dis3 = 2;
  60.             _root.next_txt2 = "You should buy a cupcake to surport the dance.";
  61.             _root.di2 = 176;
  62.             _root.next_dis2 = 7;
  63.             _root.next_txt1 = "No thanks.  I\'m not supporting anything I\'m not going to.";
  64.             _root.di1 = 177;
  65.             _root.next_dis1 = 2;
  66.          }
  67.       }
  68.    }
  69. }
  70.